package com.cmc.cloud.cmclink.doc.convert;

import com.cmc.cloud.cmclink.doc.entity.SuperWhitelistDgDO;
import com.cmc.cloud.cmclink.doc.vo.superwhitelistvo.SuperWhitelistDgBaseVO;
import com.cmc.cloud.cmclink.doc.vo.superwhitelistvo.SuperWhitelistDgExportVO;
import com.cmc.cloud.cmclink.doc.vo.superwhitelistvo.SuperWhitelistDgRespVO;
import com.cmc.cloud.cmclink.doc.vo.superwhitelistvo.SuperWhitelistDgUpdateReqVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 有条件接载清单(DG) Convert
 *
 * @author 集运管理员
 */
@Mapper
public interface SuperWhitelistDgConvert {

    SuperWhitelistDgConvert INSTANCE = Mappers.getMapper(SuperWhitelistDgConvert.class);

    /**
     * 属性转换 convert
     *
     * @param bean
     * @return
     */
    SuperWhitelistDgDO convert(SuperWhitelistDgBaseVO bean);

    /**
     * 属性转换 convert
     *
     * @param bean
     * @return
     */
    SuperWhitelistDgDO convert(SuperWhitelistDgUpdateReqVO bean);

    /**
     * 属性转换 convert
     *
     * @param bean
     * @return
     */
    SuperWhitelistDgRespVO convert(SuperWhitelistDgDO bean);

    /**
     * 属性转换 convert
     *
     * @param list
     * @return
     */
    List<SuperWhitelistDgRespVO> convertList(List<SuperWhitelistDgDO> list);

    /**
     * 属性转换 convert
     *
     * @param superWhitelistDgDOList
     * @return
     */
    List<SuperWhitelistDgExportVO> concertExportList(List<SuperWhitelistDgDO> superWhitelistDgDOList);
}
